package com.cloud.controller;


import com.cloud.service.OrderService;
import com.cloud.util.JsonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (Order)表控制层
 *
 * @author makejava
 * @since 2020-11-28 11:08:40
 */
@RestController
@RequestMapping("order")
public class OrderController {

    @Resource
    private OrderService orderService;

    @GetMapping("createOrder")
    public JsonResult createOrder(){
        orderService.createOrder();
        return JsonResult.okMsg("订单创建成功");
    }

}